package Two;

import javax.swing.*;
import java.awt.*;

public class MyText extends JTextField {
    public MyText(String info, int x, int y, Container co){
        JLabel jl = new JLabel(info);
        jl.setBounds(x,y,80,30);
        co.add(jl);

        this.setBounds(x+100,y,200,30);
        co.add(this);
    }
}
